<?php

class Jolly_Masa_Block_Adminhtml_Masapayment_Grid extends Mage_Adminhtml_Block_Widget_Grid
{
  public function __construct()
  {
		
      parent::__construct();
      $this->setId('masaGridId');
      $this->setDefaultSort('id');
      $this->setDefaultDir('DESC');
      $this->setSaveParametersInSession(true);
  }

  protected function _prepareCollection()
  {
      $collection = Mage::getModel('masa/masapayment')->getCollection();
      $this->setCollection($collection);
      return parent::_prepareCollection();
  }

  protected function _prepareColumns()
  {
      $this->addColumn('id', array(
          'header'    => 'ID',
          'align'     =>'right',
          'width'     => '50px',
          'index'     => 'id',
      ));

	   
	  
      $this->addColumn('resultCode', array(
          'header'    => 'resultCode',
          'align'     =>'left',
		  'width'     => '50px',
          'index'     => 'resultCode',
      ));
	      $this->addColumn('orderId', array(
          'header'    => 'orderId',
          'align'     =>'left',
		  'width'     => '50px',
          'index'     => 'orderId',
      ));
	  
	  
      return parent::_prepareColumns();
  }

   

  public function getRowUrl($row)
  {
      return $this->getUrl('*/*/show', array('id' => $row->getId()));
  }

}